package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电桩状态监控对象 tb_chargingpiles
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
public class TbChargingpiles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充电桩id */
    private Long cid;

    /** 充电站id */
    @Excel(name = "充电站id")
    private Long sid;

    /** 充电桩型号 */
    @Excel(name = "充电桩型号")
    private String model;

    /** 适用车型 */
    @Excel(name = "适用车型")
    private String fitModel;

    /** 状态（0启用；1停用） */
    @Excel(name = "状态", readConverterExp = "0=启用；1停用")
    private Long state;

    /** 电压 */
    @Excel(name = "电压")
    private BigDecimal cvoltage;

    /** 电流 */
    @Excel(name = "电流")
    private BigDecimal ccurrent;

    /** 充电量（用于计费） */
    @Excel(name = "充电量", readConverterExp = "用=于计费")
    private BigDecimal cquality;

    /** 功率（用于计算充电效率） */
    @Excel(name = "功率", readConverterExp = "用=于计算充电效率")
    private BigDecimal cpower;

    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setFitModel(String fitModel) 
    {
        this.fitModel = fitModel;
    }

    public String getFitModel() 
    {
        return fitModel;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setCvoltage(BigDecimal cvoltage) 
    {
        this.cvoltage = cvoltage;
    }

    public BigDecimal getCvoltage() 
    {
        return cvoltage;
    }
    public void setCcurrent(BigDecimal ccurrent) 
    {
        this.ccurrent = ccurrent;
    }

    public BigDecimal getCcurrent() 
    {
        return ccurrent;
    }
    public void setCquality(BigDecimal cquality) 
    {
        this.cquality = cquality;
    }

    public BigDecimal getCquality() 
    {
        return cquality;
    }
    public void setCpower(BigDecimal cpower) 
    {
        this.cpower = cpower;
    }

    public BigDecimal getCpower() 
    {
        return cpower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cid", getCid())
            .append("sid", getSid())
            .append("model", getModel())
            .append("fitModel", getFitModel())
            .append("state", getState())
            .append("cvoltage", getCvoltage())
            .append("ccurrent", getCcurrent())
            .append("cquality", getCquality())
            .append("cpower", getCpower())
            .toString();
    }
}
